<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>个人资料</title>

		<link href="/static/home/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="/static/home/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="/static/home/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/static/home/css/infstyle.css" rel="stylesheet" type="text/css">
		<script src="/static/home/AmazeUI-2.4.2/assets/js/jquery.min.js" type="text/javascript"></script>
		<script src="/static/home/AmazeUI-2.4.2/assets/js/amazeui.js" type="text/javascript"></script>
			
	</head>

	<body>
		<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
					<!--顶部导航条 -->
					<div class="am-container header">
						
						<ul class="message-r">
							{if condition="!empty($Think.session.uid)" }
						     <div class="topMessage home"> 
						      <div class="menu-hd">
						       <a href="/home/index" class="h">商城首页</a>
						      </div> 
						     </div>

						     <div class="topMessage my-shangcheng"> 
						      <div class="menu-hd MyShangcheng">
						       <a target="_top" href="/orderinfo/grxx"><i class="am-icon-user am-icon-fw"></i>个人中心</a>
						      </div> 
						     </div>
						     
						     <div class="topMessage mini-cart"> 
						      <div class="menu-hd">
						       <a id="mc-menu-hd" href="/cart/index" target="_top" ><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h"></strong></a>
						      </div> 
						     </div>

						     <div class="topMessage favorite"> 
						      <div class="menu-hd">
						       <a href="/orderinfo/collection" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a>
						      </div> 
						     </div>
						     {/if}
						</ul>
						</div>

						<!--悬浮搜索框-->

						<div class="nav white">
							<div class="logoBig" style="position:relative;top:-15px;right:100px;">
								<li><img src="/static/home/images/aishang.png" /></li>
							</div>

							<div class="search-bar pr">
								<a name="index_none_header_sysc" href="#"></a>
								<form>
									<input id="searchInput" name="index_none_header_sysc" type="text" value="搜索" autocomplete="off">
									<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
								</form>
							</div>
						</div>

						<div class="clear"></div>
					</div>
				</div>
			</article>
		</header>
             <div class="nav-table">
					   <div class="long-title"><span class="all-goods">全部分类</span></div>
					   <div class="nav-cont">
							<ul>
								 <li class="index"><a href="/home/index">首页</a></li>
								  {foreach name="brand" item="bra"}
								      <li class="qc"><a href="/home/brand/id/{$bra['id']}">{$bra['brand']}</a></li>
								  {/foreach}
							</ul>
						    <div class="nav-extra">
						    	<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
						    	<i class="am-icon-angle-right" style="padding-left: 10px;"></i>
						    </div>
						</div>
			</div>
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-info">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">个人资料</strong> / <small>Personal&nbsp;information</small></div>
						</div>
						<hr/>

						<!--头像 -->
						<div class="user-infoPic">

							<div class="filePic">
								<input type="file" class="inputPic" allowexts="gif,jpeg,jpg,png,bmp" accept="image/*">
								<img class="am-circle am-img-thumbnail" src="/static/home/images/getAvatar.do.jpg" alt="" />
							</div>

							<p class="am-form-help">头像</p>

							<div class="info-m">
								<div><b>用户名：<i>{$info['tel']}</i></b></div>
								<div class="u-level">
									<span class="rank r2">
							             <s class="vip1"></s><a class="classes" href="#">{switch name="$info['member']"}
											 {case value="0"}普通用户{/case}
											 {case value="1"}VIP用户{/case}
											 {/switch}</a>
						            </span>
								</div>
								<div class="u-safety">
								</div>
							</div>
						</div>

						<!--个人信息 -->
						<div class="info-main">
							<form class="am-form am-form-horizontal" method="post" action="/orderinfo/update">

								<div class="am-form-group">
									<label for="user-name2" class="am-form-label">昵称</label>
									<div class="am-form-content">
										<input type="text" id="user-name2" value="{$info['nickname']}" name="nickname">

									</div>
								</div>

								<div class="am-form-group">
									<label for="user-name" class="am-form-label">姓名</label>
									<div class="am-form-content">
										<input type="text" id="user-name2" value="{$info['name']}" name="name">

									</div>
								</div>

								<div class="am-form-group">
									<label class="am-form-label">性别</label>
									<div class="am-form-content sex">
									{if condition="$info['sex']==0"}
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="0" data-am-ucheck checked> 男
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="1" data-am-ucheck> 女
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="2" data-am-ucheck> 保密
										</label>
									{elseif condition="$info['sex']==1"/}
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="0" data-am-ucheck> 男
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="1" data-am-ucheck checked> 女
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="2" data-am-ucheck> 保密
										</label>
									{elseif condition="$info['sex']==2"/}
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="0" data-am-ucheck> 男
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="1" data-am-ucheck> 女
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="sex" value="2" data-am-ucheck checked> 保密
										</label>
										{/if}
										
									</div>
								</div>

								<div class="am-form-group">
									<label for="user-phone" class="am-form-label">生日</label>
									<div class="am-form-content">
										<input id="user-phone" value="{$info['birthday']}" type="tel" name="birthday">

									</div>
								</div>
								<div class="am-form-group">
									<label for="user-phone" class="am-form-label">电话</label>
									<div class="am-form-content">
										<input id="user-phone" value="{$info['phone']}" type="tel" name="phone">

									</div>
								</div>
								<div class="am-form-group">
									<label for="user-email" class="am-form-label">电子邮件</label>
									<div class="am-form-content">
										<input id="user-email" value="{$info['email']}" type="email" name="email">

									</div>
								</div>
								<div class="am-form-group address">
									<label for="user-address" class="am-form-label">收货地址</label>
									<div class="am-form-content address">
										<a href="address.html">
											<p class="new-mu_l2cw">
												<span class="province">湖北</span>省
												<span class="city">武汉</span>市
												<span class="dist">洪山</span>区
												<span class="street">雄楚大道666号(中南财经政法大学)</span>
												<span class="am-icon-angle-right"></span>
											</p>
										</a>

									</div>
								</div>
								<div class="am-form-group safety">
									<label for="user-safety" class="am-form-label">账号安全</label>
									<div class="am-form-content safety">
										<a href="safety.html">

											<span class="am-icon-angle-right"></span>

										</a>

									</div>
								</div>
								<div class="info-btn">
									<button class="am-btn am-btn-danger">保存修改</button>
								</div>

							</form>
						</div>

					</div>

				</div>
					<div class="footer "> 
				     <div class="footer-hd "> 
				      <p> 
				          <span>友情链接</span> 
				        {foreach name="links" item="links"}
				          <a href="http://{$links['linksaddress']}" target="_blank">{$links['linksname']}</a> <b>|</b>
				        {/foreach} 
				      </p> 
				     </div> 
				     <div class="footer-bd "> 
				      <p> <a href="# ">关于爱上零食屋</a>&nbsp&nbsp&nbsp&nbsp&nbsp 
				      <a href="# ">合作伙伴</a>&nbsp&nbsp&nbsp&nbsp&nbsp  
				      <a href="# ">联系我们</a></p> 
				     </div> 
				    </div> 
			</div>

			<aside class="menu">
				<ul>
					<li class="person">
						<a href="/orderinfo/grxx">个人中心</a>
					</li>
					<li class="person">
						<ul>
							<li class="active"> <a href="/orderinfo/grxx">个人信息</a></li>
							<!-- <li> <a href="">安全设置</a></li> -->
							<li> <a href="/orderinfo/addressa">收货地址</a></li>
						</ul>
					</li>
					<li class="person">
						<a href="#">我的交易</a>
						<ul>
							<li><a href="/orderinfo/index">订单管理</a></li>
						</ul>
					</li>

					<li class="person">
						<a href="#">我的小窝</a>
						<ul>
							<li> <a href="/orderinfo/collection">收藏</a></li>
							<li> <a href="/orderinfo/evaluate/uid/{$Think.session.uid}">评价</a></li>
						</ul>
					</li>

				</ul>

			</aside>
		</div>

	</body>

</html>